<?php
/**
 *	Data Model of Users.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.12.2005
 *	@version		0.1
 */
/**
 *	Data Model of Users.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.12.2005
 *	@version		0.1
 */
final class Model_User extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$userId			ID of User
	 *	@return		void
	 */
	public function __construct( $userId = NULL )
	{
		$tableName	= 'users';
		$columns	= array(
			'userId',
			'creatorId',
			'status',
			'username',
			'email',
			'password',
			'language',
			'notify',
			'created',
			'modified',
			'logged',
		);
		$primaryKey	= $columns[0];
		$indices	= array( 'status', 'username', 'email', 'notify' );
		parent::__construct( $tableName, $columns, $primaryKey, $$primaryKey );
		$this->setIndices( $indices );
	}
}
?>